<?php use_javascript('global') ?>
<?php include_partial('global/userMessages', array('flash_name' => 'field_errs')) ?>
<form id='main_form' method='post' action='<?php echo url_for("@add_field?farm_id=$farm_id") ?>' enctype='application/x-www-form-urlencoded'>
<div id="newforms">
<div class="formcontain">
<div class="farmform">
<!-- FIELD INFORMATION -->
<h1>Field Information</h1>
<table class='tbl' border="0">
    <tr style="text-align:center; background-color:#CCC;">
        <td class='req'>Field Name</td>
        <td class='req'>Field Year</td>
        <td>Acres</td>
        <td>Herbicide Used</td>
        <td>Preceding Crop</td>
        <td>Current Crop</td>
        <td>Date Planted <br /> (month/day/year)</td>
        <td>Lime Applied</td>
    </tr>
    <tr>
        <td><input type="text" class='txt req' name="field_name" maxlength="25"/></td>
        <td><?php include_partial('yearOptions', array('singular' => true)) ?></td>
        <td class='int'><input type="text" class='txt' name="acres" maxlength='10' /></td>
        <td><input type="text" class='txt' name="herbicide_used" maxlength="25"/></td>
        <td><select name="preceding_crop" >
        <option>Corn</option>
        <option>Barley</option>
        <option>Canola</option>
        <option>Corn</option>
        <option>Corn Silage</option>
        <option>Dry Beans</option>
        <option>Forage Crops</option>
        <option>Potatoes</option>
        <option>Rye</option>
        <option>Snap Beans</option>
        <option>Sorghum</option>
        <option>Soybeans</option>
        <option>Sugar Beets</option>
        <option>Sweet Corn</option>
        <option>Vegetables</option>
        <option>Wheat</option>
        <option>Other</option>
        </select>
        </td>
        <td><select name="current_crop">
         <option>Corn</option>
        <option>Barley</option>
        <option>Canola</option>
        <option>Corn</option>
        <option>Corn Silage</option>
        <option>Dry Beans</option>
        <option>Forage Crops</option>
        <option>Potatoes</option>
        <option>Rye</option>
        <option>Snap Beans</option>
        <option>Sorghum</option>
        <option>Soybeans</option>
        <option>Sugar Beets</option>
        <option>Sweet Corn</option>
        <option>Vegetables</option>
        <option>Wheat</option>
        <option>Other</option>
        </select>
        </td>
        <td class='date'><?php include_partial('global/dateBox', array('singular' => true, 'prefix' => 'fi')) ?></td>
        <td><select name="lime_applied">
        <option>Yes</option>
        <option>No</option>
        </select>
        </td>
            
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="comments"></textarea></td>
    </tr>
</table>
<!-- FIELD FERTILITY -->
<h1>Field Fertility</h1>

<table class='tbl' border="0">

    <tr style="text-align:center; background-color:#CCC;">
        <td>N_PSNT</td>
        <td>Bray P1</td>
        <td>K</td>
        <td>NH<sub>4</sub></td>
        <td>Soil pH</td>
        <td>Buffered pH</td>
    </tr>
    <tr>
        <td><input type="text" class='txt'  name="f_npsnt" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_brayp1" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_k" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_nh4" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_soilph" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="f_bufferedph" maxlength="25"/></td>
    </tr>
</table>
<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2"  name="f_comments"></textarea></td>
    </tr>
</table>
<!-- NUTRIENTS ADDED -->
<h1>Nutrients Added</h1>
<table class='tbl' border="0">
    <tr class="tr_one">
        <td>N</td>
        <td>P</td>
        <td>K</td>
    </tr>

    <tr>
        <td><input type="text" class='txt'  name="na_N" maxlength='10' /></td>
        <td><input type="text" class='txt'  name="na_P" maxlength='10' /></td>
        <td><input type="text" class='txt'  name="na_K" maxlength='10' /></td>
    </tr>
</table>


<table class='tbl' border="0">
    <tr class="tr_one">
        <td>Manure</td>
        <td>Type</td>
        <td><sub>m</sub>N</td>
        <td><sub>m</sub>P</td>
        <td><sub>m</sub>K</td>
    </tr>

    <tr>
        <td class='xsm'><?php include_partial('manureOptions', array('singular' => true)) ?></td>
        <td><input type="text" class='txt'  name="na_type" maxlength="100"/></td>
        <td class='int'><input type="text" class='txt'  name="na_mN" maxlength='10' /></td>
        <td class='int'><input type="text" class='txt' name="na_mP" maxlength='10' /></td>
        <td class='int'><input type="text" class='txt' name="na_mK" maxlength='10' /></td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="na_comments"></textarea></td>
    </tr>
</table>
<!-- COVER CROP -->
<h1>Cover Crop</h1>
<table class='tbl' border="0">
    <tr style="text-align:center; background-color:#CCC;">
        
        <td>Family</td>
        <td>Used</td>
        <td>Rate</td>
        <td>Seed Cost</td>
        <td>Cost Share</td>
        <td>Planting Method</td>
        <td>Date Planted<br /> (month/day/year)</td>
        <td>Q.S. Fall</td>
        <td>Q.S. Spring</td>
    </tr>
    <tr>
        
       
        <td class='md'><select  name="cc_family">
        <option>Brassica</option>
        <option>Grass</option>
        <option>Legume</option>
        <option>Mix</option>
        <option>Non-Legume Broadleaf</option>       
        </select>
        </td>
        <td class='lg'>
        <select name="cc_used">
        <option>Alfalfa (Non-Dormant)</option>
        <option>Barley (Winter)</option>
        <option>Buckwheat</option>
        <option>Clover (Berseem)</option>
        <option>Clover (Crimson)</option>
        <option>Clover (Red)</option>
        <option>Cowpea</option>
        <option>Millet (Japanese)</option>
        <option>Millet (Pearl)</option>
        <option>Oats</option>
        <option>Pea (Field/Winter)</option>
        <option>Radish (Oilseed)</option>
        <option>Rapeseed/Canola</option>
        <option>Rye (Winter Cereal)</option>
        <option>Ryegrass (Annual)</option>
        <option>Sorghum (Sudangrass)</option>
        <option>Sweet Clover</option>
        <option>Triticale (Winter)</option>
        <option>Turnip (Forage type)</option>
        <option>Vetch (Hairy)</option>
        <option>Wheat (Winter)</option>
        <option>50% HV/50% WC Rye</option>
        <option>50% W. Pea/50% OSR</option>
        <option>60% A Ryegr/40% OSR</option>
        <option>60% Cr Cl/40% A. Ryegr</option>
        <option>60% Cr Cl/40% Oats</option>
        <option>60% Oats/40% OSR</option>
        <option>Other (explain in comments)</option>                       
        </select>
        </td>
        <td class='int'><input type="text" class='txt'  name="cc_rate" maxlength='10' /></td>
        <td class='int'><input type="text" class='txt'  name="cc_seed_cost" maxlength='10' /></td>
        <td class='xsm'><select  name="cc_cost_share">
        <option>None</option>
        <option>EQIP</option>
        <option>CSP</option>
        <option>State</option>
        <option>Local</option>
        <option>Other</option>
               
        </select>
        </td>
        <td class='lg'><select  name="cc_planting_method">
        <option>Areal</option>
        <option>Broadcast</option>
        <option>Drill</option>
        <option>Frost seed</option>
        <option>Highboy seeder</option>
        <option>Planter</option>
        <option>Precision</option>
        <option>Slurry</option>
        <option>Other (explain in comments)</option>
     
        </select>
        </td>
        <td class='date'><?php include_partial('global/dateBox', array('singular' => true, 'prefix' => 'cc')) ?></td>
        <td class='xxs'>
        
        <select  name="cc_quality_fall">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        
        </select>
        </td>
        <td class='xxs'><select  name="cc_quality_spring" >
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>      
       </select>           
        </td>
    </tr>
</table>
<table class='tbl' border="0">
    <tr style="text-align:center; background-color:#CCC;">
        <td>Termination Method</td>
        <td>Termination Chemical Used</td>
        <td>Carrier</td>
        <td># of Times Sprayed</td>
        <td>Termination Temp</td>
        <td>Termination Weather</td>
        <td>Termination Date<br /> (month/day/year)</td>
        <td>Successful Termination</td>
        <td>Yield</td>
    </tr>
    <tr>
        <td><input type="text" class='txt'  name="cc_term_method" maxlength="25" /></td>
        <td><input type="text" class='txt'  name="cc_term_chem" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="cc_carrier" maxlength='25' /></td>
        <td class='int'><input type="text" class='txt'  name="cc_sprayed" maxlength='10' /></td>
        <td class='int'><input type="text" class='txt'  name="cc_term_temp" maxlength='10' /></td>
        <td><select  name="cc_term_weather">
            <option>Sunny</option>
            <option>Partly Sunny</option>
            <option>Cloudy</option>
            <option>Rainy</option></select>
        </td>
        <td class='date'><?php include_partial('global/dateBox', array('singular' => true, 'prefix' => 'cc_term')) ?></td>
        <td><select  name="cc_success_term">
            <option>Yes</option>
            <option>No</option>
            <option>Eventually</option>
            </select>
        </td>
        <td class='int'><input type="text" class='txt'  name="cc_yield" maxlength='10' /></td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="cc_comments"></textarea></td>
    </tr>
</table>

<!-- CONSERVATION TILLAGE -->

<h1>Conservation Tillage</h1>

<table class='tbl' border="0">
    <tr style="text-align:center; background-color:#CCC;">
        <td>Tillage Acres</td>
        <td>Previous Tillage</td>
        <td>Current Tillage</td>
    </tr>
    <tr>       
        <td class='int'><input name="ct_acres" type="text" class='txt'  maxlength='10' /></td>
        <td>
        <select  name="ct_previous">
            <option>Continuous No Till</option>
            <option>No Till</option>
            <option>Strip Till</option>
            <option>Mulch Till</option>
            <option>Conventional Till</option></select>
        </td>
        <td>
        <select  name="ct_current">
        <option>Continuous No Till</option>
            <option>No Till</option>
            <option>Strip Till</option>
            <option>Mulch Till</option>
            <option>Conventional Till</option></select>
        </td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="ct_comments"></textarea></td>
    </tr>
</table>


<!-- PEST CONTROL -->

<h1>Pest Control</h1>

<table class='tbl' border="0">
    <tr style="text-align:center; background-color:#CCC;">
        
        <td>Pest</td>
        <td>Threshold</td>
        <td>Method</td>
        <td>Chemical Application Rate</td>
        <td>Application Date<br /> (month/day/year)</td>
    </tr>
     
    <tr>
        
        <td><input type="text" class='txt'  name="pc_pest" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="pc_threshold" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="pc_method" maxlength="25"/></td>
        <td><input type="text" class='txt'  name="pc_chem_app_rate" maxlength="25"/></td>
        <td class='date'><?php include_partial('global/dateBox', array('singular' => true, 'prefix' => 'pc_app')) ?></td>
    </tr>
</table>
<table>
    <tr>
        <td class='note'>Comments</td>
        <td><textarea cols='25' rows="2" name="pc_comments"></textarea></td>
    </tr>
</table>
</div>
</div>
</div>
<p id='form_btns'><input id='submit_btn' type='submit' value='Save' /></p>
<input type='hidden' value='<?php echo $farm_id ?>' name='farm_id' />
</form>